Wednesday, June 26, 2019

How to Fix : Xamarin-IOS build error - Could not link assemblies. Error while processing reference of the project


If you are Xamarin.forms or Xamarin.iOS developper, you might get through many errors one of them is in linking assemblies with code MT2001.


What happened !


If you have ever got this error, it is probably problem in one of the assemblies that could not manage linking with it.

MT2001 is a MTouch error for message :Could not link assemblies.

The list of MT error messages you can get them from here.

How to solve it !


First try to :
  • Delete bin/obj folders
  • Clean solution
  • Restore nuget packages
  • Unload/Reload projects
Then, make sure there is no use for Mono.Android in references of .Net Standard project.

Finally, in iOS project properties, then go to iOS Build.


In Additional mtouch arguments input, add -v -v -v -v for full log description while building the project in output, you will know the exact assembly and the issues.

Post a Comment

Start typing and press Enter to search